package gatperdut.chato.core.interpreter.grammar.comminfo;

import gatperdut.chato.core.interpreter.grammar.comminfo.indexedword.IndexedWord;

public class FoodInfo extends CommandInfo {

    public enum ConsumptionType {
        EAT, DRINK;
    };

    private final ConsumptionType consumptionType;

    public FoodInfo( ConsumptionType consumptionType ) {
        super( CommandType.FOOD );
        this.consumptionType = consumptionType;
    }

    private IndexedWord what;

    private int amount = 1;

    private boolean ground = false;

    public IndexedWord getWhat() {
        return what;
    }

    public void setWhat( IndexedWord what ) {
        this.what = what;
    }

    public int getAmount() {
        return amount;
    }

    public void setAmount( int amount ) {
        this.amount = amount;
    }

    public boolean isGround() {
        return ground;
    }

    public void setGround( boolean ground ) {
        this.ground = ground;
    }

    public ConsumptionType getConsumptionType() {
        return consumptionType;
    }

}
